function myAxios({ options }) {
  return new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest()

    xhr.open(options.method, options.url)
    xhr.onload = function () {
      resolve(xhr.responseText)
      // console.log()
    }
    xhr.onerror = function () {
      reject("错误")
    }
    xhr.send()
  })

}
